package com.example.dao;

import com.example.domain.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;


@Mapper
@Repository
public interface RootInfoMapper {


    Patient sltName(String str);


    @Select("select count(*)  from patient where phone_number=#{phone_number} and pwd=#{pwd}")
    boolean loginIn(Patient patient);



    @Update("update patient set pwd=#{pwd} where id=1")
    int altPwd(String pwd);


}
